package top.wilbert.collegelink.classification.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * @author Augus
 * @email 2531496343@qq.com
 * @date 2023-02-21 09:32:39
 */
@Data
@TableName("region")
public class RegionEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 地区id
	 */
	@TableId
	private Long regionId;
	/**
	 * 地区名称
	 */
	private String name;
	/**
	 * 父id
	 */
	private Long pid;
	/**
	 * 层级深度
	 */
	private Integer level;
	/**
	 * 路径信息
	 */
	private String pathName;
	/**
	 * 路径完整
	 */
	private String pathCode;

	@JsonInclude(JsonInclude.Include.NON_EMPTY)
	@TableField(exist = false)
	private List<RegionEntity> children;

}
